{include file="kuerp/common/menu" /}
<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        <ul class="nav nav-tabs" id="examine_status" data-field="examine_status">
            <li class="{:$Think.get.examine_status === null || $Think.get.examine_status === '0' ? 'active' : ''}"><a href="#t-0" data-value="0" data-toggle="tab">{:__('待我审核的')}</a></li>
            <li class="{:$Think.get.examine_status === '1' ? 'active' : ''}"><a href="#t-1" data-value="1" data-toggle="tab">{:__('我已审核的')}</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">

                    <script type="text/html" id="thisToolbar">
                        <div class="layui-btn-container">
                           <button class="layui-btn layui-icon-btn layui-btn-sm layui-bg-cyan btn-refresh" lay-event="refresh"><i class="layui-icon">&#xe669;</i> {:__('Refresh')}</button>
                            <!-- <button class="layui-btn layui-icon-btn layui-btn-sm {if condition="$auth->check($nowmenu.'/add')!=1"}hiddens{/if}" lay-event="add"><i class="layui-icon">&#xe654;</i> {:__('Add')}</button> -->
                            <!-- <button class="layui-btn layui-icon-btn layui-btn-sm layui-btn-danger {if condition="$auth->check($nowmenu.'/del')!=1"}hiddens{/if}" lay-event="delAll"><i class="layui-icon">&#xe640;</i> {:__('Delete')}</button> -->

                            {if condition="isset($set['examine']['is_checked']) && $set['examine']['is_checked']==1"}
                            <!-- <button class="layui-btn layui-icon-btn layui-btn-sm layui-btn-danger fright {if condition="$auth->check($nowmenu.'/counter')!=1"}hiddens{/if}" lay-event="counter_f"><i class="layui-icon">&#xe6c9;</i> 反对单</button>
                            <button class="layui-btn layui-icon-btn layui-btn-sm fright {if condition="$auth->check($nowmenu.'/counter')!=1"}hiddens{/if}" lay-event="counter"><i class="layui-icon">&#xe6c9;</i> 对单</button> -->
                            <!-- <button class="layui-btn layui-icon-btn layui-btn-sm layui-btn-danger fright {if condition="$auth->check($nowmenu.'/examine')!=1"}hiddens{/if}" lay-event="examine_f"><i class="layui-icon">&#xe674;</i> 反审核</button> -->
                            <!-- <button class="layui-btn layui-icon-btn layui-btn-sm  {if condition="$auth->check($nowmenu.'/examine')!=1"}hiddens{/if}" lay-event="examine"><i class="layui-icon">&#xe674;</i> 审核</button> -->
                            {/if}

                            <!-- <input type="hidden" id="createexchange" value=""> -->
                            <!-- <button type="button" class="layui-btn layui-icon-btn layui-btn-sm layui-btn-danger fright createexchange" data-id="" style="display: none">生成退货单</button> -->
                        </div>
                    </script>

                    <form class="layui-form layui-search" id="layui-search" role="form">
                        
                        <div class="layui-input-inline">
                            <input type="text" name="purchase_code" id="purchase_code" autocomplete="off" placeholder="{:__('Purchase_code')}" class="layui-input">
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="purchase_time" id="purchase_time" autocomplete="off" placeholder="{:__('Purchase_time')}" class="layui-input">
                        </div>
                        <div class="layui-input-inline">
                            <input id="customers_id" name="customers_id" class="layui-input form-control selectpage" data-multiple="false" data-source="kuerp/customers/index" data-search-field="customer_name" data-field="customer_name" type="text" value="" placeholder="{:__('Customers_id')}">
                            <!-- <select name="customers_id" id="customers_id" class="layui-input">
                                <option value="">请选择{:__('Customers_id')}</option>
                                {foreach name="searchCustomers" item="vo"}
                                <option value="{$vo.id}">{$vo.customer_name}</option>
                                {/foreach}
                            </select> -->
                        </div>
                        <div class="layui-input-inline">
                            <select name="sale_user" id="sale_user" class="layui-input">
                                <option value="">请选择{:__('Sale_user')}</option>
                                {foreach name="searchSaleList" item="vo"}
                                <option value="{$vo.id}">{$vo.name}</option>
                                {/foreach}
                            </select>
                        </div>
                        <!-- <div class="layui-input-inline">
                            <select name="pay_status" id="pay_status" placeholder="{:__('Pay_status')}" class="layui-input">
                                <option value="">请选择{:__('Pay_status')}</option>
                                <option value="0">{:__('Pay_status 0')}</option>
                                <option value="1">{:__('Pay_status 1')}</option>
                                <option value="2">{:__('Pay_status 2')}</option>
                            </select>
                        </div>
                        <div class="layui-input-inline">
                            <select name="examine_status" id="examine_status" placeholder="{:__('Examine_status')}" class="layui-input">
                                <option value="">请选择{:__('Examine_status')}</option>
                                <option value="0">{:__('Examine_status 0')}</option>
                                <option value="1">{:__('Examine_status 1')}</option>
                            </select>
                        </div> -->
                        <div class="layui-input-inline">
                            <input type="text" name="serials" id="serials" autocomplete="on" placeholder="{:__('锁号/备注')}" class="layui-input" clearable>
                        </div>
                        <div class="layui-input-inline " style="width: 90px">
                            <button class="layui-btn layui-btn-sm" type="button" id="search" data-type="reload">
                                 <i class="layui-icon"></i> {:__('Search')}
                            </button>
                         </div>
                    </form>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%" lay-filter="table">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<style>
    .layui-table-tool{
        z-index:102
    }
    .sp_result_area{
        z-index:103;
    }
</style>